import App from './App'
import uView from "uview-ui";
import store from '@/store'
Vue.use(uView);
import {router,RouterMount} from './router'  //路径换成自己的
Vue.use(router)
import shopro from "@/shop";
Vue.use(shopro);
import publicModule from "@/components/commons/public-module.vue";
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"

Vue.component("public-module", publicModule);
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)

import common from '@/common/mixins/index.js'
Vue.mixin(common)
// import shopro from "@/shop";
// Vue.use(shopro);
Vue.prototype.$store = store
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	router,
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif